﻿@model IEnumerable<FilmBookingTicket.Models.Actor>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Diễn viên</h2>

<p>
    @Html.ActionLink("Thêm diễn viên", "Create")
</p>
<table class="table striped bordered hovered" style="margin :0px 0px 0px 40px">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
                <th>
            @Html.DisplayNameFor(model => model.Nation)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Nation)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ActorId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ActorId })
        </td>
    </tr>
}

</table>
